package cn.zhsq.fw.api.feign;

import cn.zhsq.fw.api.dto.Person;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

// http://fw-service/app/fw  -> http://localhost:10001/app/fw
@FeignClient("fw-service")
public interface FwFeign {

    @PostMapping("/app/fw")
    public String hello(@RequestBody Person person);

}
